/*
 * @Author: zhangyun
 * @Date: 2021-04-20 17:02:11
 * @LastEditors: zhangyun
 * @LastEditTime: 2021-04-25 14:04:03
 * @Desc: 
 */
import {createRouter, createWebHistory} from 'vue-router'

const Home = () => import('../pages/home/index.vue')
const Found = () => import('../pages/found/index.vue')
const Member = () => import('../pages/member/index.vue')
const Creator = () => import('../pages/creator/index.vue')
const FeaturedQuestion = () => import('../pages/creator/featuredQuestion.vue')
const PushVideo = () => import('../pages/creator/pushVideo.vue')
const WriteArticle = () => import('../pages/creator/writeArticle.vue')
export default createRouter({
  history: createWebHistory(),
  routes: [
    {
      path: '/', 
      name: 'home',
      component: Home, 
    },{
      path: '/found', 
      name: 'found',
      component: Found, 
    },
    {
      path: '/member', 
      name: 'member',
      component: Member, 
    }, 
    {
      path: '/creator', 
      name: 'creator',
      component: Creator, 
      children: [
        {
          path: '/creator/featuredQuestion', 
          name: 'featuredQuestion',
          component: FeaturedQuestion, 
        },
        {
          path: '/creator/writeArticle', 
          name: 'writeArticle',
          component: WriteArticle, 
        },
        {
          path: '/creator/pushVideo', 
          name: 'pushVideo',
          component: PushVideo, 
        },
      ]
    }
  ]
})